home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 1.0 for Developers / QuickTime 1.0 for Developers.iso / Programming Stuff / Sample Code / Sample Compress Picture / CompressionDialog.r < prev    next >
Text File  |  1991-02-09  |  4KB  |  269 lines

  1.  
  2. /*
  3.     File:        CompressionDialogs.r
  4.  
  5.     Contains:    Compression Dialogs  Resources
  6.  
  7.     Written by:    Mark Krueger
  8.  
  9.     Copyright:    © 1991 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     This file is used in these builds: Warhol
  12.  
  13.     Change History (most recent first):
  14.  
  15.          <8>     3/28/91    SMC        Fixed spelling error.
  16.          <7>     3/26/91    SMC        First shot at motion decompression dialog.
  17.          <6>     3/21/91    MK        fix slider file finding
  18.          <5>     2/24/91    MK        fix low memory bugs
  19.          <4>     2/12/91    MK        clean it up
  20.          <3>      2/9/91    MK        add wizzy slider
  21.          <2>      2/9/91    MK        add str# for menu names
  22.          <1>      2/9/91    MK        first checked in
  23.  
  24.     To Do:
  25. */
  26.  
  27.  
  28. #include    "types.r"
  29.  
  30.  
  31. resource 'DITL' (200, "Compression Settings") {
  32.     {    /* array DITLarray: 11 elements */
  33.         /* [1] */
  34.         {180, 174, 202, 259},
  35.         Button {
  36.             enabled,
  37.             "OK"
  38.         },
  39.         /* [2] */
  40.         {210, 174, 232, 259},
  41.         Button {
  42.             enabled,
  43.             "Cancel"
  44.         },
  45.         /* [3] */
  46.         {36, 100, 54, 282},
  47.         UserItem {
  48.             enabled
  49.         },
  50.         /* [4] */
  51.         {126, 12, 142, 282},
  52.         UserItem {
  53.             enabled
  54.         },
  55.         /* [5] */
  56.         {72, 100, 90, 282},
  57.         UserItem {
  58.             enabled
  59.         },
  60.         /* [6] */
  61.         {36, 12, 53, 85},
  62.         StaticText {
  63.             disabled,
  64.             "Method :"
  65.         },
  66.         /* [7] */
  67.         {108, 122, 125, 172 },
  68.         StaticText {
  69.             disabled,
  70.             "Quality"
  71.         },
  72.         /* [8] */
  73.         {144, 12, 161, 46},
  74.         StaticText {
  75.             disabled,
  76.             "Low"
  77.         },
  78.         /* [9] */
  79.         {144, 248, 161, 280},
  80.         StaticText {
  81.             enabled,
  82.             "High"
  83.         },
  84.         /* [10] */
  85.         {72, 12, 90, 96},
  86.         StaticText {
  87.             disabled,
  88.             "Colorspace :"
  89.         },
  90.         /* [11] */
  91.         {0, 72, 15, 228},
  92.         StaticText {
  93.             disabled,
  94.             "Compression Settings"
  95.         }
  96.     }
  97. };
  98.  
  99. resource 'DLOG' (200, "Compression Settings") {
  100.     {65, 53, 301, 347},
  101.     dBoxProc,
  102.     visible,
  103.     goAway,
  104.     0x0,
  105.     200,
  106.     ""
  107. };
  108.  
  109.  
  110. resource 'DITL' (201, "MCompression Settings", purgeable) {
  111.     {    /* array DITLarray: 19 elements */
  112.         /* [1] */
  113.         {310, 174, 332, 259},
  114.         Button {
  115.             enabled,
  116.             "OK"
  117.         },
  118.         /* [2] */
  119.         {344, 174, 366, 259},
  120.         Button {
  121.             enabled,
  122.             "Cancel"
  123.         },
  124.         /* [3] */
  125.         {36, 100, 54, 282},
  126.         UserItem {
  127.             enabled
  128.         },
  129.         /* [4] */
  130.         {126, 12, 142, 282},
  131.         UserItem {
  132.             enabled
  133.         },
  134.         /* [5] */
  135.         {72, 100, 90, 282},
  136.         UserItem {
  137.             enabled
  138.         },
  139.         /* [6] */
  140.         {36, 12, 53, 85},
  141.         StaticText {
  142.             disabled,
  143.             "Method :"
  144.         },
  145.         /* [7] */
  146.         {108, 103, 125, 202},
  147.         StaticText {
  148.             disabled,
  149.             "Spatial Quality"
  150.         },
  151.         /* [8] */
  152.         {144, 17, 161, 51},
  153.         StaticText {
  154.             disabled,
  155.             "Low"
  156.         },
  157.         /* [9] */
  158.         {144, 244, 161, 276},
  159.         StaticText {
  160.             enabled,
  161.             "High"
  162.         },
  163.         /* [10] */
  164.         {72, 12, 90, 96},
  165.         StaticText {
  166.             disabled,
  167.             "Colorspace :"
  168.         },
  169.         /* [11] */
  170.         {3, 47, 20, 242},
  171.         StaticText {
  172.             disabled,
  173.             "Motion Compression Settings"
  174.         },
  175.         /* [12] */
  176.         {172, 84, 189, 215},
  177.         CheckBox {
  178.             enabled,
  179.             "Temporal Quality"
  180.         },
  181.         /* [13] */
  182.         {190, 12, 206, 282},
  183.         UserItem {
  184.             enabled
  185.         },
  186.         /* [14] */
  187.         {208, 17, 225, 51},
  188.         StaticText {
  189.             disabled,
  190.             "Low"
  191.         },
  192.         /* [15] */
  193.         {208, 244, 225, 276},
  194.         StaticText {
  195.             enabled,
  196.             "High"
  197.         },
  198.         /* [16] */
  199.         {232, 54, 249, 165},
  200.         StaticText {
  201.             disabled,
  202.             "Key Frame Rate:"
  203.         },
  204.         /* [17] */
  205.         {232, 170, 248, 230},
  206.         EditText {
  207.             enabled,
  208.             ""
  209.         },
  210.         /* [18] */
  211.         {262, 51, 279, 165},
  212.         StaticText {
  213.             disabled,
  214.             "Max Frame Rate:"
  215.         },
  216.         /* [19] */
  217.         {262, 170, 278, 230},
  218.         EditText {
  219.             enabled,
  220.             ""
  221.         }
  222.     }
  223. };
  224.  
  225.  
  226. resource 'DLOG' (201, "MCompression Settings", purgeable) {
  227.     {64, 52, 444, 346},
  228.     dBoxProc,
  229.     visible,
  230.     goAway,
  231.     0x0,
  232.     201,
  233.     ""
  234. };
  235.  
  236.  
  237.  
  238. resource 'STR#' (200, "Menu Names") {
  239.     {
  240.         "Color",
  241.         "GreyScale",
  242.         "Black and White",
  243.         "4 Greys",
  244.         "16 Greys",
  245.         "256 Greys",
  246.         "2 Colors",
  247.         "4 Colors",
  248.         "16 Colors",
  249.         "256 Colors",
  250.         "Thousands of Colors",
  251.         "Millions of Colors Packed",
  252.         "Millions of Colors"
  253.     }
  254. };
  255.  
  256.  
  257.  
  258. type 'CDEF' {
  259.     hex string;
  260. };
  261.  
  262.  
  263. resource 'CDEF' (200,  "Marks Wizzy Slider", sysheap,preload,locked) {
  264.  
  265. $$resource($$Shell("warholObjects")"MarksWizzySlider", 'CDEF', 200);
  266.  
  267. };
  268.  
  269.